class PopulateUsers < ActiveRecord::Migration
  def self.up
    user1 = User.new
    user1.address = "Jönsabovägen 17"
    user1.city = "Johannishus"
    user1.county_id = 91
    user1.email = "tomasbjerre@yahoo.com"
    user1.firstname = "Tomas"
    user1.judgement = "-1"
    user1.lastname = "Bjerre"
    user1.clearpassword = "min;kod"
    user1.clearpassword_confirmation = "min;kod"
    user1.postalcode = "37275"
    user1.show_tel = 1
    user1.tel = "0768966787"
    user1.username = "tomasbjerre"
    user1.save

    adminuser1 = AdminUser.new
    adminuser1.user_id = user1.id
    adminuser1.save

    adminip1 = AdminIp.create(:ip => "127.0.0.1", :admin_user_id => adminuser1.id)
    adminip2 = AdminIp.create(:ip => "192.168.2.59", :admin_user_id => adminuser1.id)

  end

  def self.down
  end
end
